﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Farigola.Engine.SystemData;

namespace Farigola.Engine.TestUnit
{
    [TestFixture]
    public class WorkspaceTestUnit
    {
        // [SetUp]
        // [TearDown]

        /// <summary>
        /// Test that workspace is set correctly;, internal object are all present.
        /// </summary>
        [Test]
        public void testWokspaceCheckInternal()
        {
		    Engine engine= EngineCommonTestUnit.CreateInitEngine();
		
		    Workspace wksp= engine.GetWorkspace();
		
		    SystemDataMgr systemDataMgr = wksp.GetSystemDataMgr();
		    Assert.IsNotNull(systemDataMgr,"The systemDataMfgr of the workspace should be present.");
		
		    // check the workspace internal content, after init 
		    bool res= wksp.CheckInternal();
		    Assert.IsTrue(res, "The check internal of the workspace should return true.");
		
		    // check the workspace internal content, after init 
		    res= systemDataMgr.CheckInternal();
		    Assert.IsTrue(res,"The check internal of the SystemDataMgr of the workspace should return true.");
		
	    }
    }
}
